package com.service;

import java.sql.SQLException;
import java.util.Timer;

public class SynServiceEnahanceTest {
    public static void main(String[] args) throws SQLException {
        String host = "192.168.2.69:8081";
        String propsPath = "conf/database.properties";
        SynServiceEnhance syncService = new SynServiceEnhance(host, propsPath);
        syncService.startSync();
//        Timer timer = new Timer();
//        timer.schedule(syncService.pullTask, 2000);
//        timer.schedule(syncService.subTask, 8000);
//        // 心跳监测socket连接是否断掉,10分钟监测一次
//        timer.schedule(syncService.heart, 10000,60000);
    }
}
